package com.fly.data.jdbc.dao;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jdbc.repository.query.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.fly.data.jdbc.domain.User;

public interface UserRepository extends PagingAndSortingRepository<User, Long>
{
    @Query("SELECT * FROM user")
    public List<User> queryAll();
    
    public List<User> findByUserNameLike(String name);
    
    public List<User> findBy(Pageable pageable);
}
